var Person = function(name) {
    var a = [name.split(' ')[0], name.split(' ')[1]];
    this.getFirstName = function() {
        return a[0];
    };
    this.getLastName = function() {
        return a[1];
    };
    this.getFullName = function() {
        return a[0] + ' ' + a[1];
    };
    this.setFirstName = function(b) {
        a[0] = b;
    };
    this.setLastName = function(b) {
        a[1] = b;
    };
    this.setFullName = function(b) {
        a[0] = b.split(' ')[0];
        a[1] = b.split(' ')[1];
    };
};
var bob = new Person('Bob Ross');
bob.getFirstName();